<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>添加外治法</title>
  <link rel="stylesheet" type="text/css" href="/eazyui/themes/default/easyui.css">
  <link rel="stylesheet" type="text/css" href="/eazyui/themes/icon.css">
  <link rel="stylesheet" type="text/css" href="/eazyui/demo.css">
  <script type="text/javascript" src="/eazyui/jquery.min.js"></script>
  <script type="text/javascript" src="/eazyui/jquery.easyui.min.js"></script>

</head>
<body>
<h2>为数据库添加外治法</h2>
<p class="hint" style="color:red;">点击单元格进行编辑</p>
<div style="margin:20px 0;"></div>

<table id="dg" class="easyui-datagrid" title="添加外治法" style="width:780px;height:auto"
       data-options="
				iconCls: 'icon-edit',
				singleSelect: true,
				toolbar: '#tb',
				url: '/json/outsideoperationdata.json',
				method: 'get',
				onClickCell: onClickCell,
				nowrap:false,
				onEndEdit: onEndEdit
			">
  <thead>
  <tr>
    <th data-options="field:'sic_name',width:80,editor:'textbox'">症型名</th>
    <th data-options="field:'ope_name',width:80,editor:'textbox'">外治法名</th>
    <th data-options="field:'content1',width:100,editor:'textbox'">内容1</th>
    <th data-options="field:'content2',width:100,editor:'textbox'">内容2</th>
    <th data-options="field:'content3',width:100,editor:'textbox'">内容3</th>
  </tr>
  </thead>
</table>

<div id="tb" style="height:auto">
  <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="append()">添加</a>
  <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="removeit()">移除</a>
  <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="accept()">保存</a>
  <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="reject()">撤销</a>
</div>
<script type="text/javascript" src="/js/addoutsideoperation.js"></script>
</body>

</html>
